#include "stdafx.h"
#include "LocalFileSystem.h"

namespace SyncClient
{
	class LocalFileSystem::Impl
	{
	public:
		Impl()
		{

		}

		~Impl()
		{

		}

		int32_t init()
		{
			return RT_NOT_IMPLEMET;
		}

		int32_t release()
		{
			return RT_NOT_IMPLEMET;
		}

		int32_t list(const FileObject& folder, const PageParam& page, ListResult& result)
		{
			return RT_NOT_IMPLEMET;
		}
	};

	LocalFileSystem::LocalFileSystem()
		:impl_(new (std::nothrow)Impl)
	{
	}

	LocalFileSystem::~LocalFileSystem()
	{
	}

	int32_t LocalFileSystem::init()
	{
		if (!impl_)
		{
			return RT_OUT_OF_MEMORY;
		}
		return impl_->init();
	}

	int32_t LocalFileSystem::release()
	{
		if (!impl_)
		{
			return RT_OUT_OF_MEMORY;
		}
		return impl_->release();
	}

	int32_t LocalFileSystem::list(const FileObject& folder, const PageParam& page, ListResult& result)
	{
		if (!impl_)
		{
			return RT_OUT_OF_MEMORY;
		}
		return impl_->list(folder, page, result);
	}
}
